import { defineStore } from "pinia";

import { computed, ref } from "vue";
import axios from "axios";

export const usecounterstore=defineStore('counter',()=>{
    const count=ref(0)

    const increment=()=>{
        count.value++                  
    }

    const doublecounter=computed(()=>count.value*2 )


const list=ref([])


    return {
        count,
        doublecounter,
        increment
    }

    
})